package com.jeecg.entity.card;

import com.jeecg.util.JsonUtils;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author zhangdaihao
 * @version V1.0
 * @Title: Entity
 * @Description: card
 * @date 2019-06-05 18:08:59
 */
@Entity
@Table(name = "wwdx_card", schema = "")
@DynamicUpdate(true)
@DynamicInsert(true)
public class CardEntity implements java.io.Serializable {
    /**
     * id
     */
    private java.lang.Long id;
    /**
     * 日期
     */
    private java.lang.String date;
    /**
     * 类型：0打卡1订阅
     */
    private java.lang.Integer type;
    /**
     * 每天活跃用户数
     */
    private java.lang.Integer usernewcount;
    /**
     * 每天新增用户数
     */
    private java.lang.Integer userdaycount;
    /**
     * 打卡总用户数
     */
    private java.lang.Integer usertotalcount;

    /**
     * 方法: 取得java.lang.Integer
     *
     * @return: java.lang.Integer  id
     */

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "ID", nullable = false, precision = 19, scale = 0)
    public java.lang.Long getId() {
        return this.id;
    }

    /**
     * 方法: 设置java.lang.Integer
     *
     * @param: java.lang.Integer  id
     */
    public void setId(java.lang.Long id) {
        this.id = id;
    }

    /**
     * 方法: 取得java.lang.String
     *
     * @return: java.lang.String  日期
     */
    @Column(name = "DATE", nullable = false, length = 19)
    public java.lang.String getDate() {
        return this.date;
    }

    /**
     * 方法: 设置java.lang.String
     *
     * @param: java.lang.String  日期
     */
    public void setDate(java.lang.String date) {
        this.date = date;
    }

    /**
     * 方法: 取得java.lang.Integer
     *
     * @return: java.lang.Integer  类型：0打卡1订阅
     */
    @Column(name = "TYPE", nullable = false, precision = 10, scale = 0)
    public java.lang.Integer getType() {
        return this.type;
    }

    /**
     * 方法: 设置java.lang.Integer
     *
     * @param: java.lang.Integer  类型：0打卡1订阅
     */
    public void setType(java.lang.Integer type) {
        this.type = type;
    }

    /**
     * 方法: 取得java.lang.Integer
     *
     * @return: java.lang.Integer  每天活跃用户数
     */
    @Column(name = "USERNEWCOUNT", nullable = false, precision = 19, scale = 0)
    public java.lang.Integer getUsernewcount() {
        return this.usernewcount;
    }

    /**
     * 方法: 设置java.lang.Integer
     *
     * @param: java.lang.Integer  每天活跃用户数
     */
    public void setUsernewcount(java.lang.Integer usernewcount) {
        this.usernewcount = usernewcount;
    }

    /**
     * 方法: 取得java.lang.Integer
     *
     * @return: java.lang.Integer  每天新增用户数
     */
    @Column(name = "USERDAYCOUNT", nullable = false, precision = 19, scale = 0)
    public java.lang.Integer getUserdaycount() {
        return this.userdaycount;
    }

    /**
     * 方法: 设置java.lang.Integer
     *
     * @param: java.lang.Integer  每天新增用户数
     */
    public void setUserdaycount(java.lang.Integer userdaycount) {
        this.userdaycount = userdaycount;
    }

    /**
     * 方法: 取得java.lang.Integer
     *
     * @return: java.lang.Integer  打卡总用户数
     */
    @Column(name = "USERTOTALCOUNT", nullable = false, precision = 19, scale = 0)
    public java.lang.Integer getUsertotalcount() {
        return this.usertotalcount;
    }

    /**
     * 方法: 设置java.lang.Integer
     *
     * @param: java.lang.Integer  打卡总用户数
     */
    public void setUsertotalcount(java.lang.Integer usertotalcount) {
        this.usertotalcount = usertotalcount;
    }

    @Override
    public String toString() {
        return JsonUtils.bean2Json(this);
    }
}